﻿// Decompiled with JetBrains decompiler
// Type: System.Web.Razor.Generator.CodeGenerationCompleteEventArgs
// Assembly: System.Web.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
// MVID: 682513D6-F37E-48AC-9909-F3EE103CFF14
// Assembly location: D:\Project\Idea\无人机外网\uav\客户端工程\排查工具\bin\Release\System.Web.Razor.dll

using Microsoft.Internal.Web.Utils;
using System.CodeDom;

namespace System.Web.Razor.Generator
{
  /// <summary>This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Represents the completion of event arguments for the code generation.</summary>
  public class CodeGenerationCompleteEventArgs : EventArgs
  {
    /// <summary>This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Initializes a new instance of the <see cref="T:System.Web.Razor.Generator.CodeGenerationCompleteEventArgs" /> class.</summary>
    /// <param name="virtualPath">The virtual path string.</param>
    /// <param name="physicalPath">The physical path string.</param>
    /// <param name="generatedCode">The generated code compile unit.</param>
    public CodeGenerationCompleteEventArgs(
      string virtualPath,
      string physicalPath,
      CodeCompileUnit generatedCode)
    {
      if (string.IsNullOrEmpty(virtualPath))
        throw new ArgumentException(CommonResources.Argument_Cannot_Be_Null_Or_Empty, nameof (virtualPath));
      if (generatedCode == null)
        throw new ArgumentNullException(nameof (generatedCode));
      this.VirtualPath = virtualPath;
      this.PhysicalPath = physicalPath;
      this.GeneratedCode = generatedCode;
    }

    /// <summary>This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the generated code to complete the event argument.</summary>
    /// <returns>The generated code to complete the event argument.</returns>
    public CodeCompileUnit GeneratedCode { get; private set; }

    /// <summary>This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the virtual path of the code generation.</summary>
    /// <returns>The virtual path of the code generation.</returns>
    public string VirtualPath { get; private set; }

    /// <summary>This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the physical path for the code generation.</summary>
    /// <returns>The physical path for the code generation.</returns>
    public string PhysicalPath { get; private set; }
  }
}
